package com.luoye.sh.ws.config;

import org.glassfish.jersey.jackson.JacksonFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.context.annotation.Configuration;

import javax.ws.rs.ApplicationPath;

/**
 * Created by Administrator on 2018/5/31.
 */
@Configuration
@ApplicationPath("/hi")
public class JerseyConfig extends ResourceConfig {
    public JerseyConfig() {
        packages("com.luoye.sh.ws");
        register(JacksonFeature.class);

    }
}
